const Layout = () => import("../view/Layout");
const Dashboard = () => import("../view/Home/Dashboard");
const Banner = () => import("../view/Home/Banner");
const BannerAdd = () => import("../view/Home/Banner/addInfo.vue");
const BannerEdit = () => import("../view/Home/Banner/edit.vue");
const homeRoute = { path: '/home',
    component: Layout,
    redirect: "/home/dashboard",
    meta:{title:"home",icon:"HomeOutlined"},
    children:[
      { path:"dashboard",
        component:Dashboard,
        name:"dashboard",
        meta:{
          title:"dashboard",
          icon:"HomeOutlined",
          isAffix:true
        }},
      { path:"banner",component:Banner,name:"banner",meta:{title:"banner",icon:"HomeOutlined"}},
      {
        path: "banner/add",
        component: BannerAdd,
        name: "BannerAdd",
        meta: {
          title: "BannerAdd",
          breadcrumb: "轮播图管理",
        },
        hidden: true,
      } ,{
        path: "banner/edit/:id",
        component: BannerEdit,
        name: "BannerEdit",
        meta: {
          title: "BannerEdit",
          breadcrumb: "轮播图管理",
        },
        hidden: true,
      },
    
    ]
    };
    export default homeRoute;